package com.ruoyi.stock.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;

/**
 * 入库对象 t_warehouse_in
 *
 * @author YwaiX
 * @date 2024-10-29
 */

@Data
@NoArgsConstructor
@AllArgsConstructor
public class WarehouseIn extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    private Long id;

    /**
     * 入库编号
     */
    @Excel(name = "入库编号")
    private String warehouseInNo;

    /**
     * 来源(关联销售订单或采购订单)
     */
    @Excel(name = "来源(关联销售订单或采购订单)")
    private String sourceNo;

    /**
     * 入库类型(生产入库/采购入库/退料入库)(字典)
     */
    @Excel(name = "入库类型(生产入库/采购入库/退料入库)(字典)")
    private Long goodsType;

    /**
     * 入库状态(待质检,待入库,已入库)
     */
    @Excel(name = "入库状态(待质检,待入库,已入库)")
    private Long warehouseInStatus;

    /**
     * 入库时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "入库时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date warehouseInDate;

    /**
     * 入库人id
     */
    @Excel(name = "入库人id")
    private Long userId;

    private List<WarehouseInInfo> warehouseInInfoList;
}
